<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/5/005
 * Time: 17:00
 */

namespace app\api\validate;


class ProductValidate extends BaseValidate {
    protected $rule = [
        'key' => 'require|in:is_customization,is_shop',
        'cid' => 'require|isPositiveInteger'
    ];

    protected $scene = [
        'list' => ['key', 'cid'],
        'attr' => ['select_ids']
    ];
}